/*
 * hkh-project
 * leafteamwork.blogspot.com
 * Tool: Netbeans 6.7.1 - SQL Server 2005
 */
package vn.com.hkh.dto;

import java.io.Serializable;

/**
 *
 * @author leaf
 */
public class RoomDTO implements Serializable{

    private static long serialVersionUDI = 1L;

    private String id;
    private String name;
    private String content;
    private String image;
    private String price;
    private String when;
    private String alias;
    private int position;
    private int status;
    
    private UserDTO user;


    public RoomDTO() {
    }

    public RoomDTO(String id, String name, String content, String image, String price, String when, String alias, int position, int status) {
        this.id = id;
        this.name = name;
        this.content = content;
        this.image = image;
        this.price = price;
        this.when = when;
        this.alias = alias;
        this.position = position;
        this.status = status;
    }

   

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(String _id) {
        this.id = _id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String _name) {
        this.name = _name;
    }

    /**
     * @return the content
     */
    public String getContent() {
        return content;
    }

    /**
     * @param content the content to set
     */
    public void setContent(String _content) {
        this.content = _content;
    }

    /**
     * @return the image
     */
    public String getImage() {
        return image;
    }

    /**
     * @param image the image to set
     */
    public void setImage(String _image) {
        this.image = _image;
    }

    /**
     * @return the price
     */
    public String getPrice() {
        return price;
    }

    /**
     * @param price the price to set
     */
    public void setPrice(String _price) {
        this.price = _price;
    }

    /**
     * @return the when
     */
    public String getWhen() {
        return when;
    }

    /**
     * @param when the when to set
     */
    public void setWhen(String _when) {
        this.when = _when;
    }

    /**
     * @return the alias
     */
    public String getAlias() {
        return alias;
    }

    /**
     * @param alias the alias to set
     */
    public void setAlias(String _alias) {
        this.alias = _alias;
    }

    /**
     * @return the user
     */
    public UserDTO getUser() {
        return user;
    }

    /**
     * @param user the user to set
     */
    public void setUser(UserDTO _user) {
        this.user = _user;
    }

     /**
     * @return the status
     */
    public int getStatus() {
        return status;
    }

    /**
     * @param status the status to set
     */
    public void setStatus(int _status) {
        this.status = _status;
    }

    @Override
    public int hashCode() {
        int _hash = 0;
        _hash += (getId() != null ? getId().hashCode() : 0);
        return _hash;
    }

    @Override
    public boolean equals(Object _object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(_object instanceof RoomDTO)) {
            return false;
        }
        RoomDTO _other = (RoomDTO) _object;
        if ((this.getId() == null && _other.getId() != null) || (this.getId() != null && !this.getId().equals(_other.getId()))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "RoomDTO[id=" + getId() + "]";
    }

    /**
     * @return the position
     */
    public int getPosition() {
        return position;
    }

    /**
     * @param position the position to set
     */
    public void setPosition(int position) {
        this.position = position;
    }
}
